import { _decorator, Component } from 'cc';
import { AudioEffectManager } from 'db://assets/component/audio/AudioEffectManager';
import { ClipGroup } from './ClipGroup';
const { ccclass, property } = _decorator;

@ccclass('AudioTest3')
export class AudioTest3 extends Component {
    @property(ClipGroup)
    guiGroupData: ClipGroup = null!;
    start() {}

    update(deltaTime: number) {}

    public onButton_1() {
        AudioEffectManager.Instance.play(this.guiGroupData.clip[0]);
    }

    public onButton_2() {
        AudioEffectManager.Instance.play(this.guiGroupData.clip[1]);
    }

    public onButton_3() {
        AudioEffectManager.Instance.play(this.guiGroupData.clip[2]);
    }

    public onButton_4() {
        AudioEffectManager.Instance.play(this.guiGroupData.clip[3]);
    }

    
}
